window.onload = init


function init(){
    setTimeout(function mostrar(){
        document.getElementById("frase1").style.display="block";},2000)
    setTimeout(function mostrar2(){
        document.getElementById("frase1").style.display="none";
        document.getElementById("frase2").style.display="block";
        },8000)
    setTimeout(function mostrar3(){
        document.getElementById("frase1").style.display="none";
        document.getElementById("frase2").style.display="none";
        document.getElementById("frase3").style.display="block";
        },14000)
    setTimeout(function mostrar4(){
        document.getElementById("frase1").style.display="none";
        document.getElementById("frase2").style.display="none";
        document.getElementById("frase3").style.display="none";
        document.getElementById("frase4").style.display="block";
        },24000)
    setTimeout(function mostrar5(){
        document.getElementById("frase1").style.display="none";
        document.getElementById("frase2").style.display="none";
        document.getElementById("frase3").style.display="none";
        document.getElementById("frase4").style.display="none";
        document.getElementById("frase5").style.display="block";
        },33000) 
    setTimeout(function redireccionar(){location.href="intro2.php";},35000);
    document.getElementById("sonido").innerHTML= 
    "<embed src='sonido/superman.mp3' hidden=true autostart=true loop=false>"
}
